<?php

namespace app\common\model;

use think\Model;

class DeliveryRule extends Model
{
    protected $autoWriteTimestamp = true;
    protected $type = [
        'create_time'    =>  'integer',
        'update_time'     =>  'integer',
    ];
    // 设置json类型字段
    protected $json = ['weight_rule','distance_rule','special_time_rule'];
    // 设置JSON数据返回数组
    protected $jsonAssoc = true;
}
